    <div id="container">
        <div id="header">
            <div id="tabs">
                <ul class="tabs">
					<li>Listings</li>					
					<li onclick="app.settingsTab()">Settings</li>
					<li>Reports</li>
					<li><a href="/logout" title="Logout from your session">Logout</a></li>
					<li onclick="app.sync()"><img src="/images/icons/sync.png" alt="Sync"/></li>
                </ul>
            </div>            
        </div>
		<div id="main">
			<div id="listingsContent">
				<div id="status">
					<div class="sellingTotals"></div>
					<div class="finishedTotals"></div>
				</div>
				<div id="filterbar">
					<ul class="filters"> 
					<li filter="status=(.)*" class="enabled"> All Items </li>
					<li filter="status=0"> Created Items</li>
					<li filter="status=1"> Selling Items </li>
					<li filter="status=3"> Sold Items </li>
					<li filter="status=2"> Not Sold Items </li>
					<li filter="status=4"> Paid Items </li>
					</ul>
				</div>
		        <div id="content">
		        </div>
				<div id="search">
					<label for="filterbox">Filter:</label><input id="filterbox" type="checkbox"/>
					<label for="searchbox">Find:</label><input id="searchbox"type="text" />
				</div>
		        <div id="tasks">
		        </div>
				
			</div>
		</div>
    </div>

<?php
// Process the listings through iteration, using an absolute reference for each row
foreach($this->listings as &$row)
{
    $length = 55; // Maximmum lenght of the description
    if(strlen($row['description']) > 55)
    {
        $row['description'] = substr($row['description'], 0, $length).'<span class="longDescription">...</span>';
    }

    //Round prices correctly to two decimal places
    $row['startPrice'] = $this->price($row['startPrice']);
    $row['currentPrice'] = $this->price($row['currentPrice']);
    $row['delivery'] = $this->price($row['delivery']);

    //Remove anyfields the front-end shouldn't view
    unset($row['uid']);
}
//$locale = Zend_Registry::getInstance()->get('Zend_Locale');
$currency = new Zend_Currency();
$json = new stdClass();
$json->app = new stdClass();

$json->app->currency = $currency->getShortName();
$json->app->currencySymbol = $currency->getSymbol();
$json->listings = $this->listings;

//Store any data into javascript for use on the frontend.
?>
<script type="text/javascript">
var json = <?php  echo Zend_Json::Encode($json); ?>;
</script>
<script  src="<?php echo $this->baseUrl().'/js/ebay.js'; ?>" type="text/javascript"></script>